import http from '@/utils/httpRequest.js'
export function policy() {
   return  new Promise((resolve,reject)=>{
        http({
            url: http.adornUrl("/thirdparty/oss/policy"),
            method: "get",
            params: http.adornParams({})
        }).then(({ data }) => {
            resolve(data);
        })
    });
}

export function policySign(callbackUrl) {
  return  new Promise((resolve,reject)=>{
    http({
      url: http.adornUrl("/thirdparty/oss/generateSign/get"),
      method: "post",
      data: http.adornData({ callBack: callbackUrl}, false)
    }).then(({ data }) => {
      resolve(data);
    })
  });
}
